inscatolati - Get out of the box! :)
- Adding the debian logo before the login prompt
- Setting up raid partitions, 0xfd, and mdadm configuration file
- Blocking spam from reaching your console.
- apt-get error: E: Dynamic MMap ran out of room
- Logging the boot output
- Using cryptpart and suspend to disk in Debian, and encrypted root
- setlocale failing, and strange locale behavior
Adding the debian logo before the login prompt
[19]
Just run:
|
|
Setting up raid partitions, 0xfd, and mdadm configuration file
[26]
As you can read on the Linux Software RAID HOWTO, you should set the type of raid partitions to 0xfd. Note, however, that there are two ways to assemble raid devices:
asking the kernel to do it automatically, at boot time.
by running mdadm or the raidhot tools right at boot time, telling them to assemble raid devices.
In practice: if you put 0xfd in the type flag of the partition table, the device will be automatically assembled at boot time. If you don't, you will need to configure mdadm and/or raidhot tools to do that for you (at boot time), or you will have to assemble the device manually.
To create the mdadm configuration file, you have two choices: one, create it manually, two, run
|
|
Blocking spam from reaching your console.
[39]
By default, the linux kernel will output lot of different kind of messages on your console. To disable them, you can run:
|
If you don't have a prompt, or it's too hard to write, and have emergency sysctl enabled in your kernel, you can try pressing ctrl+alt+stamp+1 (aka ctrl+alt+sysreq+1).
If you want this parameter to be automatically set at every reboot, you can add the -c1 parameter to klogd, in /etc/init.d. To do so in Debian, you need to modify /etc/default/klogd, to have something like:
|
Note that even though this parameter is set to 1, the messages will still go to syslogd, which can decide that the message is important enough to be outputted in your console. Either stop syslogd temporarily, or change /etc/syslog.conf if it bothers you.
apt-get error: E: Dynamic MMap ran out of room
[42]
|
Logging the boot output
[45]
|
Using cryptpart and suspend to disk in Debian, and encrypted root
[46]
|
|
|
setlocale failing, and strange locale behavior
[49]
On any linux systems, setlocale will fail unless you have the data for the selected locale compiled and available.
The symptoms range from:
setlocale() returning NULL
scripts returning errors like:
perl: warning: Setting locale failed.
web interfaces like imp, squirrel, or horde ignoring the language and the settings you selected
In Debian, to select the locales you want compiled and available, you need to use the command:
|
This script will generate a file /etc/locale.gen listing all the locales that you are interested into. It will then call /usr/sbin/update-locale and /usr/sbin/locale-gen, which is the real script that takes care of compiling the locale files by running something like:
|